package com.qx.grainmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qx.common.utils.PageUtils;
import com.qx.grainmall.product.entity.CategoryEntity;
import com.qx.grainmall.product.vo.Category2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author hanguotao
 * @email 2845009006@gmail.com
 * @date 2021-08-11 16:30:32
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Map<Long, List<Category2Vo>> catelog();
    //缓存实现
    Map<Long, List<Category2Vo>> catalogListCache();

    Map<Long, List<Category2Vo>> getCatalogJsonFromDbWithRedisLock();

    Map<Long, List<Category2Vo>> getCatalogJsonWithReadWriteLock();
}

